import json
import os

import rou.constants as rc
def get_emergencyLaneConfig_info():
    emergencyLane_path = rc.DEFAULT_SCENE_EMERGENCYLANECONFIG_PATH
    gty_path = os.path.join(emergencyLane_path, rc.DEFAULT_EMERGENCYLANECONFIG_NAME)
    with open(gty_path, "r", encoding="utf-8") as f:
        data = f.read()
    return json.loads(data)
def get_emergencyLaneControl_info():
    emergencyLane_path = rc.DEFAULT_SCENE_EMERGENCYLANECONFIG_PATH
    emergencyLaneControl_path = os.path.join(emergencyLane_path, rc.DEFAULT_EMERGENCYLANECONTROL_NAME)
    with open(emergencyLaneControl_path, "r", encoding="utf-8") as f:
        data = f.read()
    return json.loads(data)